<?php
/*
	提现
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
global $_RQ;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
$return['ischecklogin']=$this->model('member')->get_member();
if($_RQ['op']=='get'){
	$_SESSION['forward_url']='jy_xiangqin/member.index/';
	$_SESSION['indexurl']='jy_xiangqin/index/';
	$member=$this->model('member')->get_member();
	$member['nickname']=$member['nickname']?:$return['item']['nickname'];
	$member['avatar']=$member['avatar']?:$return['item']['avatar'];
	$member['siimgs']=$member['siimgs']?json_decode($member['siimgs'],true):array();
	$member['picsnum']=count($member['siimgs']);
	$return['member']=$member;
	set_html('title','我的私房照');
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$data=array(
		'siimgs'=>ijson_encode($postdata['siimgs']),
	);
	$this->update('member',$data,array('id'=>$postdata['id']));
	exi('提交成功！');
}